const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  transpileDependencies: true,
  // publicPath默认是/，部署前根据远端路径进行调整
  publicPath: process.env.NODE_ENV === "production" ? "/ai-pc/" : "/",
  productionSourceMap: false,
  devServer: {
    host: "127.0.0.1",
    port: 8080, // 配置端口号
    proxy: {
      // "/api": {
      //   target: "http://api.douban.com/",
      //   changeOrigin: true,
      // },
    },
  },
});
